import Vue from 'vue'
import Router from 'vue-router'
import Todo from '@/components/todo.vue'
import tiaoseban from '@/components/tiaoseban'
import vuexdemo1 from '@/components/vuex_demo1'
import vuedemo1 from '@/components/vue_demo'

Vue.use(Router)

export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/',
      name: 'Todo',
      component: Todo
    },
    {
      path: '/tiaoseban',
      name: 'tiaoseban',
      component: tiaoseban
    },
    {
      path: '/vuexdemo1',
      name: 'vuexdemo1',
      component: vuexdemo1
    },
    {
      path: '/vuedemo1',
      name: 'vuedemo1',
      component: vuedemo1
    },
  ]
})
